package Participants.CapitoGuye;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import Othello.Move;
import java.util.List;

public class Main {

    public static void main(String args[]) {

        int depth = 3;
        Joueur adversaire = new Joueur(depth, 0);
        Joueur nous = new Joueur(depth, 1);
        Move move = null;
        Move result = null;

        Joueur.JOUEUR_ACTUEL = 0;
        World world = nous.getWorld();
//        //line 0 et 1
//        for (int i = 0; i < 6; i++) {
//            for (int j = 0; j < 2; j++) {
//                world.poserJeton(new Move(i, j));
//            }
//        }
//        world.poserJeton(new Move(7, 0));
//        world.poserJeton(new Move(6, 1));
//        //ligne 2
//        for (int i = 0; i < 4; i++) {
//            world.poserJeton(new Move(i, 2));
//        }
//        world.poserJeton(new Move(5, 2));
//        //line 3 complète
//        for (int i = 0; i < 8; i++) {
//            world.poserJeton(new Move(i, 3));
//        }
//        //ligne 4
//        for (int i = 0; i < 2; i++) {
//            world.poserJeton(new Move(i, 4));
//        }
//        for (int i = 3; i < 8; i++) {
//            world.poserJeton(new Move(i, 4));
//        }
//        //ligne 5
//        world.poserJeton(new Move(0, 5));
//        world.poserJeton(new Move(2, 5));
//        world.poserJeton(new Move(3, 5));
//        world.poserJeton(new Move(4, 5));
//        world.poserJeton(new Move(7, 5));
//        //ligne 6
//        world.poserJeton(new Move(1, 6));
//        world.poserJeton(new Move(3, 6));
//        world.poserJeton(new Move(4, 6));
//        world.poserJeton(new Move(7, 6));
//        //line 7 complète
//        for (int i = 0; i < 8; i++) {
//            world.poserJeton(new Move(i, 7));
//        }
//
//        //Joureur 1
//        Joueur.JOUEUR_ACTUEL = 1;
//        world.poserJeton(new Move(6, 0));
//        world.poserJeton(new Move(4, 2));
//        world.poserJeton(new Move(6, 2));
//        world.poserJeton(new Move(7, 2));
//        world.poserJeton(new Move(2, 4));
//        world.poserJeton(new Move(1, 5));
//        world.poserJeton(new Move(0, 6));
//        world.poserJeton(new Move(2, 6));
//        world.poserJeton(new Move(5, 6));
//        world.poserJeton(new Move(6, 6));

        world.poserJeton(new Move(7,0));
        world.poserJeton(new Move(7,1));
        world.poserJeton(new Move(7,2));
        world.poserJeton(new Move(7,3));
        world.poserJeton(new Move(7,4));
        world.poserJeton(new Move(7,5));
        world.poserJeton(new Move(6,1));
        world.poserJeton(new Move(6,0));
        world.poserJeton(new Move(5,0));
        world.poserJeton(new Move(4,0));


        world.poserJeton(new Move(7,6));
        world.poserJeton(new Move(7,7));

        world.DEF_CASE_HasChanged= true;
        world.DEF_CASE[7][0] = 0;
        world.DEF_CASE[6][0] = 0;
        world.DEF_CASE[5][0] = 0;
        world.DEF_CASE[4][0] = 0;
        world.DEF_CASE[6][1] = 0;
        world.DEF_CASE[7][1] = 0;
        world.DEF_CASE[7][2] = 0;
        world.DEF_CASE[7][3] = 0;
        world.DEF_CASE[7][4] = 0;
        world.DEF_CASE[7][5] = 0;

        world.poserJeton(new Move(6,2));
        System.out.println(world.isLigneFull());
        List<Case> bord = world.isLigneFull();
        for(Case b: bord){
            world.DEF_CASE[b.getI()][b.getJ()] = b.getVal();
        }
        System.out.println(world);

        System.out.println(world.isDefCase(world.getPlateau()[6][2]));
                System.out.println(world);

//        result = nous.nextPlay(null);
//        if(result == null){
//            System.out.println("Coup null");
//        }else{
//            System.out.println("Coup OK");
//        }
    }
}
//Scanner stdin = new Scanner(System.in);
//
//        System.out.println(world);
//        System.out.println("Coup adversaire: ");
//        System.out.print("Colonne: ");
//        int i = stdin.nextInt();
//        if (i != -1) {
//            System.out.print("Ligne: ");
//            int j = stdin.nextInt();
//            move = new Move(i, j);
//        }
